package org.example.DesignPatterns.Interpreter;

/**
 * @description:
 * @author: farprt
 * @create: 2022-09-25 13:50
 **/
public class LeftKeyClick implements Expression {

    private Expression leftKeyDown;
    private Expression leftKeyUp;

    public LeftKeyClick(){
        this.leftKeyDown=new LeftKeyDown();
        this.leftKeyUp=new LeftKeyUp();
    }

    @Override
    public void interpret() {
        //单击==先松开再按下，分别调用两者的解释方法
        leftKeyDown.interpret();
        leftKeyUp.interpret();
    }
}